import enumMode from "../../em/enumMode"
import enumPatch from "../../em/enumPatch"
import supModule from "../../sup/supModule"
import wnetModule from "../../glo/wnetModule"
//俱乐部
export default class gamesModule extends supModule {
    private msgModule: wnetModule = this.getModule(enumMode.mesgeModule);
    private clubId: number = null;
    constructor() {
        super(enumMode.gamesModule);
        this.setSpanel(enumPatch.gamesviews);
        this.settingnode(1);
    }

    public setClubID(clubId: number) {
        this.clubId = clubId
    }

    public getClubID(): number {
        return this.clubId
    }

    public dispatchs(data: any) {
        let arr: number[] = data.info.games;
        let mod = this.getMount(null)
        arr.forEach(id => {
            mod.pushBackSub(id)
        })
    }
}
